package com.googlecode.shapeline.core;

import java.util.List;

/**
 * 用户
 * @author 陆海涛
 *
 */
public class User {
	private int id;
	private String name;
	private String password;
	private List<Role> roles;
	private boolean locked;
	private boolean _protected;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public List<Role> getRoles() {
		return roles;
	}
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
	public boolean isProtected() {
		return _protected;
	}
	public void setProtected(boolean _protected) {
		this._protected = _protected;
	}
	public boolean isLocked() {
		return locked;
	}
	public void setLocked(boolean locked) {
		this.locked = locked;
	}
}
